package com.cskaoyan.util;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;

/**
 * @author xudengfeng
 * @date 2020/12/9 10:33
 */
public class UserInfoUtils {

    //TODO
    public static Integer getUserId() {
        Session session = SecurityUtils.getSubject().getSession();
        return (Integer) session.getAttribute("id");
    }
}
